﻿using System;
using UnityEngine;

public enum NodeType
{
    Run,Stop,Enemy
}
[Serializable]
public class AStarNode
{
    [Header("位置")]
    public Vector2Int pos = new Vector2Int(0, 0);
    [Header("父物体")]
    public AStarNode parent = null;
    [Header("权重")]
    public float weight = 0;
    [Header("消耗")]//f(总消耗)=g(离起点消耗)+h(离终点消耗)
    public float f=0, g=0, h = 0;
    [Header("类型")]
    public NodeType type;
}